package com.bjwl.service.impl;

import com.bjwl.dao.StatusMapper;
import com.bjwl.pojo.Status;
import com.bjwl.service.StatusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author: dzx
 * @Date:Create：in 2020/4/9 11:43
 * @Description:    权限表业务逻辑层
 * @Modified By：
 * @Version: 1.0
 */
@Service
public class StatusServiceImpl implements StatusService {

    @Autowired
    private StatusMapper statusMapper;

    @Override
    public List<Status> findAllStatus() {
        return statusMapper.findAllStatus();
    }

    @Override
    public Status findStatusById(Status status) {
        return statusMapper.findStatusById(status);
    }

    @Override
    @Transactional
    public void updateStatusById(Status status) {
        statusMapper.updateStatusById(status);
    }

    @Override
    @Transactional
    public void deleteStatusById(Status status) {
        statusMapper.deleteStatusById(status);
    }
}
